package _9992QianDuanKongZhiQi.dispatcher;

import _9992QianDuanKongZhiQi.view.HomeView;
import _9992QianDuanKongZhiQi.view.StudentView;

/**
 * @Dispatcher: 调度器
 * @author: ZBoHang
 * @time: 2021/9/18 11:01
 */
public class Dispatcher {
    private StudentView studentView;
    private HomeView homeView;

    public Dispatcher() {
        studentView = new StudentView();
        homeView = new HomeView();
    }

    public void dispatcher(String request) {
        if ("student".equals(request)) {
            studentView.show();
            return;
        }
        homeView.Show();
    }
}
